//network/baseUrl.js
 
// ================================================================设置网络请求根路径
let baseUrl = (function() {
  // 请求根路径
  let urlStr = 'https://study.wwykj.cn/'; 
  if (process.env.NODE_ENV === 'development') {
    console.log('开发环境');
    // #ifdef H5
    // urlStr = 'http://192.168.31/collect/';
 
    // #endif
    // #ifndef H5
    // urlStr = 'http://192.168.31/collect/';
 
    // #endif
  } else {
    console.log('生产环境');
    // #ifdef H5
     // urlStr = 'http://192.168.31/collect/';
 
    // #endif
    // #ifndef H5
     // urlStr = 'http://192.168.31/collect/';
 
    // #endif
  }
  return urlStr
})();
// ==================== 图片上传url==========
let uploadImgUrl = (function() {
  let urlStr = '';
  if (process.env.NODE_ENV === 'development') {
    urlStr = 'https://icard.foemy.com/movanFile';
 
  } else {
    urlStr = 'https://icard.foemy.com/movanFile';
 
  }
  return urlStr
})();
 // ==================== 静态资源地址url==========
 let staticUrl = (function() {
   let urlStr = '';
   if (process.env.NODE_ENV === 'development') {
     urlStr = 'https://icard.foemy.com/movanFile/xcx/static/';
  
   } else {
     urlStr = 'https://icard.foemy.com/movanFile/xcx/static/';
   }
   return urlStr
 })();
export default {
  baseUrl,
  uploadImgUrl,
  staticUrl
}